package user.util;

public class GenericArray <T> {

	private Object[] array;

	public GenericArray(int length) {
		this.array = new Object[length];
	}

	public void set(int position, T object) {
		this.array[position] = object;
	}

	@SuppressWarnings("unchecked")
	public T get(int position) {
		return (T) this.array[position];
	}

	public int size() {
		return this.array.length;
	}

}
